﻿using EFCore.Model;
using EFCore.Repositories;

namespace EFCore.Services
{
    public class SeckillService : ISeckillService
    {
        public ISeckillRepository _seckillRepository { get; set; }
        public SeckillService(ISeckillRepository seckillRepository)
        {
            _seckillRepository = seckillRepository;
        }

        public IEnumerable<Seckill> GetSeckills()
        {
            return _seckillRepository.GetSeckills();
        }
    }
}
